<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>

<div class="content w980">
    <div class="product">
        <h2>QQ号码筛选</h2>
        <div class="product-filter">
            <form method="get" action="<?php echo APP_PATH;?>index.php">
                <p>
                    <b class="title">发货方式：</b>
                    <select name="ship" class="from-control">
                        <option value="1" <?php if($_GET['ship'] == 1 || empty($_GET['ship'])) { ?> selected <?php } ?>>全部</option>
                        <option value="2" <?php if($_GET['ship'] == 2) { ?> selected <?php } ?>>随机自动发货</option>
                        <option value="3" <?php if($_GET['ship'] == 3) { ?> selected <?php } ?>>随机手动发货</option>
                        <option value="4" <?php if($_GET['ship'] == 4) { ?> selected <?php } ?>>QQ选号</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <b class="title">号码位数：</b>
                    <select name="num_type" class="from-control">
                        <option value="0" <?php if($_GET['num_type'] == 0 || empty($_GET['num_type'])) { ?> selected <?php } ?>>全部</option>
                        <option value="1" <?php if($_GET['num_type'] == 1) { ?> selected <?php } ?>>5位</option>
                        <option value="2" <?php if($_GET['num_type'] == 2) { ?> selected <?php } ?>>6位</option>
                        <option value="3" <?php if($_GET['num_type'] == 3) { ?> selected <?php } ?>>7位</option>
                        <option value="4" <?php if($_GET['num_type'] == 4) { ?> selected <?php } ?>>8位</option>
                        <option value="5" <?php if($_GET['num_type'] == 5) { ?> selected <?php } ?>>9位</option>
                        <option value="6" <?php if($_GET['num_type'] == 6) { ?> selected <?php } ?>>10位</option>
                    </select>
                </p>
                <p>
                    <b class="title">号码等级：</b>
                    <select name="level_type" class="from-control">
                        <option value="0" <?php if($_GET['level_type'] == 0 || empty($_GET['level_type'])) { ?> selected <?php } ?>>全部</option>
                        <option value="1" <?php if($_GET['level_type'] == 1) { ?> selected <?php } ?>>0-3级</option>
                        <option value="2" <?php if($_GET['level_type'] == 2) { ?> selected <?php } ?>>4-7级</option>
                        <option value="3" <?php if($_GET['level_type'] == 3) { ?> selected <?php } ?>>8-15级</option>
                        <option value="4" <?php if($_GET['level_type'] == 4) { ?> selected <?php } ?>>16-31级</option>
                        <option value="5" <?php if($_GET['level_type'] == 5) { ?> selected <?php } ?>>32-47级</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <b class="title">号码Ｑ龄：</b>
                    <select name="year_type" class="from-control">
                        <option value="0" <?php if($_GET['year_type'] == 0 || empty($_GET['year_type'])) { ?> selected <?php } ?>>全部</option>
                        <option value="1" <?php if($_GET['year_type'] == 1) { ?> selected <?php } ?>>1-3年</option>
                        <option value="2" <?php if($_GET['year_type'] == 2) { ?> selected <?php } ?>>4-6年</option>
                        <option value="3" <?php if($_GET['year_type'] == 3) { ?> selected <?php } ?>>7-10年</option>
                        <option value="4" <?php if($_GET['year_type'] == 4) { ?> selected <?php } ?>>10年以上</option>
                    </select>
                </p>
                <p>
                    <b class="title">号码类型：</b>
                    <select name="type" class="from-control">
                        <option value="0" <?php if($_GET['type'] == 0 || empty($_GET['type'])) { ?> selected <?php } ?>>全部</option>
                        <option value="1" <?php if($_GET['type'] == 1) { ?> selected <?php } ?>>令牌</option>
                        <option value="2" <?php if($_GET['type'] == 2) { ?> selected <?php } ?>>未过滤</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="submit" class="btn btn-submit" value="搜&nbsp;索">
                </p>
            </form>
        </div>
        <div class="product-list">
            <p>购买流程：点击购买(填写数量、联系QQ)→扫码付款→自动跳转到发货页面→点击下载号码即可！</p>
            <ul>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"goods\" data=\"op=goods&tag_md5=25626d169d65368f22b2159086adb703&action=lists&ship=%24ship&number=%24number&level=%24level&year=%24year&type=%24type\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$goods_tag = pc_base::load_app_class("goods_tag", "goods");if (method_exists($goods_tag, 'lists')) {$data = $goods_tag->lists(array('ship'=>$ship,'number'=>$number,'level'=>$level,'year'=>$year,'type'=>$type,'limit'=>'20',));}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $val) { ?>
                    <li>
                        <div class="fl">
                            <p><a href="<?php echo APP_PATH;?>goods-buy-<?php echo $val['id'];?>.html"><?php echo $val['name'];?></a></p>
                            <p>发货方式：<i><?php if($val['ship'] == 1) { ?> 全部 <?php } elseif ($val['ship'] == 2) { ?> 随机自动发货 <?php } elseif ($val['ship'] == 3) { ?> 随机手动发货 <?php } elseif ($val['ship'] == 4) { ?> QQ选号 <?php } ?></i> 库存：<i><?php echo $val['reserve'];?></i>  单价：<i><?php echo $val['price'];?></i></p>
                        </div>
                        <div class="fr">
                            <a href="<?php echo APP_PATH;?>goods-buy-<?php echo $val['id'];?>.html" class="pay">立即购买</a>
                        </div>
                    </li>
                <?php $n++;}unset($n); ?>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            </ul>
        </div>
    </div>
</div>

<?php include template("content","footer"); ?>